using System.Collections.ObjectModel;
using GalaSoft.MvvmLight;
using Mutzl.Samples.VideoApp.LocalContent.Model;

namespace Mutzl.Samples.VideoApp.LocalContent.ViewModel
{
    public class MainViewModel : ViewModelBase
    {
        public MainViewModel()
        {
            var videos = Video.GetVideos();
            Videos = new ObservableCollection<Video>(videos);
        }

        private ObservableCollection<Video> _videos;
        public ObservableCollection<Video> Videos
        {
            get { return _videos; }
            private set
            {
                if (_videos == value) return;
                _videos = value;
                RaisePropertyChanged(() => Videos);
            }
        }
        

    }
}